package com.yike.product.service;

import com.yike.product.entity.GoodsSupplier;
import com.yike.product.param.GoodsSupplierPageParam;
import com.yike.common.base.BaseService;
import com.yike.common.pagination.Paging;
import com.yike.product.param.GoodsSupplierParam;
import com.yike.product.vo.GoodsSupplierVo;

/**
 * 商品供应商 服务类
 *
 * @author Sakura
 * @since 2024-10-21
 */
public interface GoodsSupplierService extends BaseService<GoodsSupplier> {

    /**
     * 保存
     *
     * @param goodsSupplierParam
     * @return
     * @throws Exception
     */
    boolean saveGoodsSupplier(GoodsSupplierParam goodsSupplierParam) throws Exception;

    /**
     * 修改
     *
     * @param goodsSupplierParam
     * @return
     * @throws Exception
     */
    boolean updateGoodsSupplier(GoodsSupplierParam goodsSupplierParam) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteGoodsSupplier(Long id) throws Exception;

    GoodsSupplierVo getGoodsSupplier(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param goodsSupplierPageParam
     * @return
     * @throws Exception
     */
    Paging<GoodsSupplierVo> getGoodsSupplierPageList(GoodsSupplierPageParam goodsSupplierPageParam) throws Exception;

}
